package cn.wolfcode.cloud.shop.service.impl;

import cn.wolfcode.cloud.shop.domain.User;
import cn.wolfcode.cloud.shop.mapper.UserMapper;
import cn.wolfcode.cloud.shop.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectById(Long id) {
       return userMapper.selectByPrimaryKey(id);
    }
}
